package com.jiaquyun.jcyx.main.mine

import com.blankj.utilcode.util.ActivityUtils
import com.jiaquyun.jcyx.R
import com.jiaquyun.jcyx.jetpack.mode.NotifyViewModel
import com.module.lemlin.owner.OwnerViewModeActivity
import kotlinx.android.synthetic.main.activity_mine_message.*

class MineMessageActivity : OwnerViewModeActivity<NotifyViewModel>() {

    companion object {
        fun open() {
            ActivityUtils.startActivity(MineMessageActivity::class.java)
        }
    }

    override fun viewModel(): NotifyViewModel {
        return createViewModel()
    }

    override val layoutResId: Int
        get() = R.layout.activity_mine_message

    override fun stateBar(): StatusBar {
        return StatusBar(isLightMode = true, color = R.color.white, view = flMineMessageBar)
    }

    override fun initView() {

        ivAppBack.setOnClickListener { finish() }
    }

    override fun initData() {
        viewModel.notifySystem(type = 1)
    }

}